package com.xf.common.core.enums;

public enum UserCacheKeyEnum {
    USER("user"),
    PERMISSION("permission"),
    RESOURCE("resource"),
    LOGIN("login:"),
    CLIENTDETAILS("client_details"),
    ;

    String key;

    UserCacheKeyEnum(String key) {
        this.key = key;
    }

    public String val() {
        return this.key;
    }

    public String getKey(String userCode) {
        return key + ":" + userCode;
    }
}
